package com.sasis.model;
// Generated 2007-7-26 15:22:29 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_TYPE"
 *     
 */

public class VipType extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private String code;
    private String name;
    private String memo;
    private String bookTicket;
    private String provideFood;
    private String sentCar;
    private String boardCheck;
    private String receivedMan;
    private String visitantRoom;
    private String cabinService;
    private String receivedCar;
    private String receivedOffice;
    private String other;


    // Constructors

    /** default constructor */
    public VipType() {
    }

    
    /** full constructor */
    public VipType(String code, String name, String memo, String bookTicket, String provideFood, String sentCar, String boardCheck, String receivedMan, String visitantRoom, String cabinService, String receivedCar, String receivedOffice, String other) {
        this.code = code;
        this.name = name;
        this.memo = memo;
        this.bookTicket = bookTicket;
        this.provideFood = provideFood;
        this.sentCar = sentCar;
        this.boardCheck = boardCheck;
        this.receivedMan = receivedMan;
        this.visitantRoom = visitantRoom;
        this.cabinService = cabinService;
        this.receivedCar = receivedCar;
        this.receivedOffice = receivedOffice;
        this.other = other;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="CODE"
     *             length="16"
     *         
     */

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    /**       
     *      *            @hibernate.property
     *             column="NAME"
     *             length="64"
     *         
     */

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="1024"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET"
     *             length="1"
     *         
     */

    public String getBookTicket() {
        return this.bookTicket;
    }
    
    public void setBookTicket(String bookTicket) {
        this.bookTicket = bookTicket;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROVIDE_FOOD"
     *             length="1"
     *         
     */

    public String getProvideFood() {
        return this.provideFood;
    }
    
    public void setProvideFood(String provideFood) {
        this.provideFood = provideFood;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_CAR"
     *             length="1"
     *         
     */

    public String getSentCar() {
        return this.sentCar;
    }
    
    public void setSentCar(String sentCar) {
        this.sentCar = sentCar;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOARD_CHECK"
     *             length="1"
     *         
     */

    public String getBoardCheck() {
        return this.boardCheck;
    }
    
    public void setBoardCheck(String boardCheck) {
        this.boardCheck = boardCheck;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN"
     *             length="1"
     *         
     */

    public String getReceivedMan() {
        return this.receivedMan;
    }
    
    public void setReceivedMan(String receivedMan) {
        this.receivedMan = receivedMan;
    }
    /**       
     *      *            @hibernate.property
     *             column="VISITANT_ROOM"
     *             length="1"
     *         
     */

    public String getVisitantRoom() {
        return this.visitantRoom;
    }
    
    public void setVisitantRoom(String visitantRoom) {
        this.visitantRoom = visitantRoom;
    }
    /**       
     *      *            @hibernate.property
     *             column="CABIN_SERVICE"
     *             length="1"
     *         
     */

    public String getCabinService() {
        return this.cabinService;
    }
    
    public void setCabinService(String cabinService) {
        this.cabinService = cabinService;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR"
     *             length="1"
     *         
     */

    public String getReceivedCar() {
        return this.receivedCar;
    }
    
    public void setReceivedCar(String receivedCar) {
        this.receivedCar = receivedCar;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_OFFICE"
     *             length="1"
     *         
     */

    public String getReceivedOffice() {
        return this.receivedOffice;
    }
    
    public void setReceivedOffice(String receivedOffice) {
        this.receivedOffice = receivedOffice;
    }
    /**       
     *      *            @hibernate.property
     *             column="OTHER"
     *             length="1"
     *         
     */

    public String getOther() {
        return this.other;
    }
    
    public void setOther(String other) {
        this.other = other;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("code").append("='").append(getCode()).append("' ");			
      buffer.append("name").append("='").append(getName()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("bookTicket").append("='").append(getBookTicket()).append("' ");			
      buffer.append("provideFood").append("='").append(getProvideFood()).append("' ");			
      buffer.append("sentCar").append("='").append(getSentCar()).append("' ");			
      buffer.append("boardCheck").append("='").append(getBoardCheck()).append("' ");			
      buffer.append("receivedMan").append("='").append(getReceivedMan()).append("' ");			
      buffer.append("visitantRoom").append("='").append(getVisitantRoom()).append("' ");			
      buffer.append("cabinService").append("='").append(getCabinService()).append("' ");			
      buffer.append("receivedCar").append("='").append(getReceivedCar()).append("' ");			
      buffer.append("receivedOffice").append("='").append(getReceivedOffice()).append("' ");			
      buffer.append("other").append("='").append(getOther()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipType) ) return false;
		 VipType castOther = ( VipType ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getCode()==castOther.getCode()) || ( this.getCode()!=null && castOther.getCode()!=null && this.getCode().equals(castOther.getCode()) ) )
 && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) )
 && ( (this.getBookTicket()==castOther.getBookTicket()) || ( this.getBookTicket()!=null && castOther.getBookTicket()!=null && this.getBookTicket().equals(castOther.getBookTicket()) ) )
 && ( (this.getProvideFood()==castOther.getProvideFood()) || ( this.getProvideFood()!=null && castOther.getProvideFood()!=null && this.getProvideFood().equals(castOther.getProvideFood()) ) )
 && ( (this.getSentCar()==castOther.getSentCar()) || ( this.getSentCar()!=null && castOther.getSentCar()!=null && this.getSentCar().equals(castOther.getSentCar()) ) )
 && ( (this.getBoardCheck()==castOther.getBoardCheck()) || ( this.getBoardCheck()!=null && castOther.getBoardCheck()!=null && this.getBoardCheck().equals(castOther.getBoardCheck()) ) )
 && ( (this.getReceivedMan()==castOther.getReceivedMan()) || ( this.getReceivedMan()!=null && castOther.getReceivedMan()!=null && this.getReceivedMan().equals(castOther.getReceivedMan()) ) )
 && ( (this.getVisitantRoom()==castOther.getVisitantRoom()) || ( this.getVisitantRoom()!=null && castOther.getVisitantRoom()!=null && this.getVisitantRoom().equals(castOther.getVisitantRoom()) ) )
 && ( (this.getCabinService()==castOther.getCabinService()) || ( this.getCabinService()!=null && castOther.getCabinService()!=null && this.getCabinService().equals(castOther.getCabinService()) ) )
 && ( (this.getReceivedCar()==castOther.getReceivedCar()) || ( this.getReceivedCar()!=null && castOther.getReceivedCar()!=null && this.getReceivedCar().equals(castOther.getReceivedCar()) ) )
 && ( (this.getReceivedOffice()==castOther.getReceivedOffice()) || ( this.getReceivedOffice()!=null && castOther.getReceivedOffice()!=null && this.getReceivedOffice().equals(castOther.getReceivedOffice()) ) )
 && ( (this.getOther()==castOther.getOther()) || ( this.getOther()!=null && castOther.getOther()!=null && this.getOther().equals(castOther.getOther()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getCode() == null ? 0 : this.getCode().hashCode() );
         result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         result = 37 * result + ( getBookTicket() == null ? 0 : this.getBookTicket().hashCode() );
         result = 37 * result + ( getProvideFood() == null ? 0 : this.getProvideFood().hashCode() );
         result = 37 * result + ( getSentCar() == null ? 0 : this.getSentCar().hashCode() );
         result = 37 * result + ( getBoardCheck() == null ? 0 : this.getBoardCheck().hashCode() );
         result = 37 * result + ( getReceivedMan() == null ? 0 : this.getReceivedMan().hashCode() );
         result = 37 * result + ( getVisitantRoom() == null ? 0 : this.getVisitantRoom().hashCode() );
         result = 37 * result + ( getCabinService() == null ? 0 : this.getCabinService().hashCode() );
         result = 37 * result + ( getReceivedCar() == null ? 0 : this.getReceivedCar().hashCode() );
         result = 37 * result + ( getReceivedOffice() == null ? 0 : this.getReceivedOffice().hashCode() );
         result = 37 * result + ( getOther() == null ? 0 : this.getOther().hashCode() );
         return result;
   }   





}
